<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="test"></div>
    <script src="axios.min.js"></script>
    <script>
        axios.get('https://www.httpbin.org/ip', {
            url: encodeURIComponent(window.location.href.split('#')[0]),
        }).then(function(response) {

            document.querySelector(".test").innerHTML = JSON.stringify(response);

        }).catch(function(error) {
            // alert(JSON.stringify(error));
        });
    </script>
</body>

</html>